import requests
from config import RunConfig

def 物探单位工作量导出(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/unit/export?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工作量详情(para):
    response = requests.post(
        url=RunConfig.url + "/phy/workload/info?projectId=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 工点物探方法任务完成状况统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/engineer/workload/method/count?engineerId=&engineerName=&page=1&perPage=10&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探方法工作量统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/method/count?page=1&perPage=10&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工点工作量统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/engineer/count?page=1&perPage=10&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探方法工作量下载(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/method/export?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工作量下载(para):
    response = requests.post(
        url=RunConfig.url + "/phy/workload/export",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探工点工作量导出(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/engineer/export?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 工点物探方法任务完成状况导出(para):
    response = requests.get(
        url=RunConfig.url + "phy/engineer/workload/method/export?engineerId=&engineerName=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探单位工作量统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/unit/count?page=1&perPage=10&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工作量统计(para):
    response = requests.post(
        url=RunConfig.url + "/phy/workload/count?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
